//https://wicky.nillia.ms/enquire.js/
//用于监测设备是什么
import enquire from 'enquire.js'

export function deviceMode(call){
    const deskHandler={
        match(){
            call&&call("desk")
        },
    }

    const mobileHandler={
        match(){
            call&&call("mobile")
        }
    }

    enquire.register("screen and (max-width:1087.99px)",deskHandler)
    enquire.register("screen and (max-width:787.99px)",mobileHandler)

}